#include <REGX52.H>
#include <INTRINS.h>
#include "Delay.h"
#include "LCD1602.h"
#include "MatrixKey.h"
unsigned char KeyNum;
void main()
{
		LCD_Init();
	  LCD_ShowString(1,1,"Hello 51MCU");
	  //LCD_ShowString(2,1,"GG YYDS");
		while(1)
		{
	   KeyNum = MatrixKey();
			if(KeyNum){//如果KeyNum不为0就显示
			LCD_ShowNum(2,1,KeyNum,2);
				
			}
		}

}